home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Fonts / Face.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  1.0 KB  |  51 lines  |  [TEXT/CWIE]

  1. // Face.h
  2.  
  3. #ifndef Face_h
  4. #define Face_h
  5.  
  6. #ifndef FontNumber_h
  7. #include "FontNumber.h"
  8. #endif
  9. #ifndef FontSize_h
  10. #include "FontSize.h"
  11. #endif
  12.  
  13. class Face
  14.   {
  15.     private:
  16.         FontNumber font;
  17.         FontSize size;
  18.         ::Style style;
  19.     
  20.     public:
  21.         Face( FontNumber theFont, FontSize theSize, ::Style theStyle )
  22.           : font( theFont ),
  23.              size( theSize ),
  24.              style( theStyle )
  25.           {}
  26.         
  27.         FontNumber Font() const                            { return font; }
  28.         void SetFont( FontNumber f )                    { font = f; }
  29.         
  30.         FontSize Size() const                            { return size; }
  31.         void SetSize( FontSize s )                        { size = s; }
  32.  
  33.         ::Style Style() const                            { return style; }
  34.         void SetStyle( ::Style s )                        { style = s; }
  35.         
  36.         bool operator==( const Face& ) const;
  37.         bool operator!=( const Face& f ) const        { return !(*this == f); }
  38.         
  39.         static const Face& System();
  40.         static const Face& Application();
  41.         static const Face& Small();
  42.         static const Face& Help();
  43.  
  44.         static Face System( ScriptCode );
  45.         static Face Application( ScriptCode );
  46.         static Face Small( ScriptCode );
  47.         static Face Help( ScriptCode );
  48.   };
  49.  
  50. #endif
  51.